package com.gitee.yunduansing.authcommon.service.impl;

import com.gitee.yunduansing.authcommon.service.JwtService;

import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Service;

@Service
public class JwtServiceImpl implements JwtService {

    @Override
    public Authentication getAuthentication() {
        //获取    客户端的授权信息
        Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
        return authentication;
    }
    
}
